package com.itheima.Jiuye14;

import java.util.concurrent.ArrayBlockingQueue;

public class TestBlockingQueue {
    public static void main(String[] args) {
        ArrayBlockingQueue arr = new ArrayBlockingQueue(1); //创建阻塞队列对象   参数为队列的最大容量
        Foodie f = new Foodie(arr);
        Cooker c = new Cooker(arr);
        f.start();
        c.start();
    }
}
